package com.ssyx.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ssyx.model.order.OrderInfo;
import com.ssyx.vo.order.OrderConfirmVo;
import com.ssyx.vo.order.OrderSubmitVo;
import com.ssyx.vo.order.OrderUserQueryVo;

/**
 * ClassName:OrderInfoService
 * Description:
 *
 * @Author kay
 * @Create 2024/5/22 9:11
 * @Version 1.0
 */
public interface OrderInfoService extends IService<OrderInfo> {
    //确认订单
    OrderConfirmVo confirmOrder();

    //生成订单
    Long submitOrder(OrderSubmitVo orderSubmitVo);

    //获取订单详情
    OrderInfo getOrderInfoById(Long orderId);

    //根据orderNo,查询订单相关信息
    OrderInfo getOrderInfoByOrderNo(String orderNo);

    //修改订单信息表状态,已支付后的状态
    void orderPay(String orderNo);

    //获取用户订单分页列表
    IPage<OrderInfo> findUserOrderPage(Page<OrderInfo> pageParam, OrderUserQueryVo orderUserQueryVo);
}
